import request from '@/util/request.js'




// 新增一条考试记录
export function scoreWrongAdd() {
	return request({
		url: '/exam/scoreWrong',
		method: 'post',
		data: {
			type:localStorage.getItem('userType')
		},
	})
}
// 获取错题
export function list(params) {
	return request({
		url: '/exam/wrong/list',
		method: 'get',
		params:params,
		data:{
			type:localStorage.getItem('userType')
		}
	})
}

// 获取所有随机的错题本做练习
export function randomListWrong(data) {
	return request({
		url: '/exam/wrong/randomList',
		method: 'get',
		data:data
	})
}



// 记录用户选择的答案
export function scoreDetailWrongAdd(data) {
	return request({
		url: '/exam/scoreDetailWrong',
		method: 'post',
		data: data,
	})
}

// 记录用户选择的答案
export function scoreDetailWrongAddAll(data) {
	return request({
		url: '/exam/scoreDetailWrong/addAll',
		method: 'post',
		data: data,
	})
}

// 记录用户选择的答案
export function scoreDetailWrongList(params,session) {
	return request({
		url: '/exam/scoreDetailWrong/allList',
		method: 'get',
		params:params,
		header:{
			Session:session
		}
	})
}
